<style>
    .pageContent .node_box{ width:25%;border:1px solid #e66;margin:5px;float:left;min-height:100px}
    .pageContent .node_box .node_child_box{ width:100%;margin-left:15px;float:left;min-height:100px}
    .pageContent .node_box .node_child_box .node_label{width: 120px; float: left;}
</style>
<form onsubmit="return validateCallback(this, dialogAjaxDone)" class="pageForm" action="<?PHP echo __URL__.'/authorization/'.$role_id;?>" method="post">
    <div class="pageContent" selector="h1" layoutH="35">
        <?PHP foreach($admin_node_group_menu as $node_group):?>
            <div class="node_box">
                <label><input class="node_checkbox_<?PHP echo $node_group['id']; ?>" onclick="$('.node_checkbox_<?PHP echo $node_group['id']; ?>').attr('checked',$(this).is(':checked'));" id="node_group_<?PHP echo $node_group['id']; ?>" type="checkbox"/> <?PHP echo $node_group['name']; ?></label>
                <?PHP $this->load->view('admin/admin_role/tree',array('tree'=>$node_group,'node_checkbox_class'=>'node_checkbox_'.$node_group['id'])); ?>
            </div>
        <?PHP endforeach;?>
    </div>
    <div class="formBar">
        <label style="float:left"><input type="checkbox" group="node_ids[]" class="checkboxCtrl">全选</label>
        <ul>
            <li><div class="button"><div class="buttonContent"><button selecttype="invert" group="node_ids[]" class="checkboxCtrl" type="button">反选</button></div></div></li>
            <li><div class="buttonActive"><div class="buttonContent"><button type="submit">提交</button></div></div></li>
            <li><div class="button"><div class="buttonContent"><button class="close" type="button">关闭</button></div></div></li>
        </ul>
    </div>
</form>
